import { Environment } from "@/utils";

// 服务配置

export default new (class {
  private readonly _environment: string = Environment.dev;
  private readonly _app_id: string = "wxcfe56965f4d986f0";
  private readonly _image_oss_postfix: string =
    "?x-oss-process=image/resize,h_748,w_560";

  public get ENV(): string {
    return this._environment;
  }

  public get appId(): string {
    return this._app_id;
  }

  public get appConfig(): AppConfig {
    return {
      image_oss_postfix: this._image_oss_postfix
    };
  }
})();

interface AppConfig {
  image_oss_postfix: string;
}
